package com.sunelec.service;


import com.sunelec.pojo.Collector;
import com.sunelec.pojo.Inverter;
import com.sunelec.pojo.Power;
import com.sunelec.pojo.stationRunTableExample3;

import java.util.List;

/**
 * @Author: 吴遵明
 * @Description: 用于ReportCenter所有功能
 * @Date: Create in 2018/05/08
 * @Modified By:
 */
public interface ReportService {

    List<Power> selectPowerWithUser3(String level3user);

    List<Power> selectPowerWithUser2(String level2user);

    List<Power> selectPowerWithUser1();

    List<Collector> selectCollectorWithPowerid(List li);

    String selectPowernameWithCollectorid(String collectorid);

    /*List<stationRunTablePOJO> selectStationRunByDate(String date, String leveluser, int type);*/

    //根据date天数，leveluser来查询所有inverter
    List<Inverter> selectInverterByDate(String date, String power_id);

    //根据power_name,type,leveluser查询power_id;
    Power selectPowerId(String power_name, String leveluser, int type);

    //根据update_date,power_id查询，1.该update_date，2.每天最大电量，3.不同sn
    List<stationRunTableExample3> selectElecByPowerId(String power_id, String update_date);

    //根据update_dateMin, update_dateMax, power_id查询，1.update_dateMin, update_dateMax之间，2.每天最大电量，3.不同sn
    List<stationRunTableExample3> selectElecByPowerId2(String power_id, String update_dateMin, String update_dateMax);

    //根据power_id查询power
    public Power selectPowerById(String power_id);

    //根据collector_sn, date, time，查询该sn下的date之前总电量，精确到time
    Float selectElectricitySUMByDate(String collector_sn, String date);

    //根据collector_sn, date, time，查询该sn下的date当天总电量，精确到time
    Float selectElectricityDAYByDate(String collector_sn, String date, String time);
}
